package com.example.demo.elasticsearch.repsoitory;

import com.example.demo.elasticsearch.entiy.City;
import org.elasticsearch.index.query.QueryBuilder;
import org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchProperties;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.core.query.SearchQuery;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface CityRepository extends ElasticsearchRepository<City, Long> {
//    Iterable<T> serarch(QueryBuilder query);
//    Page<T> search(QueryBuilder query, Pageable pageable);
//    Page<T> search(SearchQuery searchQuery);
//    Page<T> searchSimilar(T entity, String[] fields, Pageable pageable);
}
